package com.lg.atp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lg.atp.dao.TblTestTaskMapper;
import com.lg.atp.entity.TblTestTask;
import com.lg.atp.service.ITestTaskService;
@Service("iTestTaskService")
@Transactional
public class ITestTaskServiceImpl implements ITestTaskService {
	
	@Autowired
	private TblTestTaskMapper tblTestTaskMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return tblTestTaskMapper.deleteTaskId(id);
	}

	@Override
	public int insert(TblTestTask record) {
		// TODO Auto-generated method stub
		return tblTestTaskMapper.insertTask(record);
	}

	@Override
	public int insertSelective(TblTestTask record) {
		// TODO Auto-generated method stub
		return tblTestTaskMapper.insertTaskSelective(record);
	}

	@Override
	public TblTestTask selectByPrimaryKey(Long id) {
		return tblTestTaskMapper.selectByTaskId(id);
	}
	
	@Override
	public List<TblTestTask> selectByScheduleCron(String scheduleCron) {
		return tblTestTaskMapper.selectByScheduleCron(scheduleCron);
	}

	@Override
	public int updateByPrimaryKeySelective(TblTestTask record) {
		// TODO Auto-generated method stub
		return tblTestTaskMapper.updateByTaskSelective(record);
	}

	@Override
	public int updateByPrimaryKey(TblTestTask record) {
		// TODO Auto-generated method stub
		return tblTestTaskMapper.updateByTaskId(record);
	}

	@Override
	public List<TblTestTask> scheduleFrequency(int i) {
		// TODO Auto-generated method stub
		return tblTestTaskMapper.scheduleFrequency(i);
	}
	
	@Override
	public List<TblTestTask> selectByTaskNum(String taskNum) {
		return tblTestTaskMapper.selectByTaskNum(taskNum);
	}
	

}
